package io.renren.modules.alarmhistory.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.alarmhistory.dao.AreaalarmHistoryDao;
import io.renren.modules.alarmhistory.entity.AreaalarmHistoryEntity;
import io.renren.modules.alarmhistory.service.AreaalarmHistoryService;
@Service("areaalarmHistoryService")
public class AreaalarmHistoryServiceImpl extends ServiceImpl<AreaalarmHistoryDao, AreaalarmHistoryEntity> implements AreaalarmHistoryService {
    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<AreaalarmHistoryEntity> page = this.page(
                new Query<AreaalarmHistoryEntity>().getPage(params),
                new QueryWrapper<AreaalarmHistoryEntity>().like("lable_id",params.get("key"))
        );

        return new PageUtils(page);
    }

}